<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script src="./js/axios.js"></script>
    <script>
        axios
            .get('http://www.localhost:3000/axios?id=1', {
                method: 'get',
            })
            .then((ret) => {
                const {
                    data: res
                } = ret;
                console.log(res);
            });
        axios
            .get('http://www.localhost:3000/axios', {
                method: 'get',
                params: {
                    id: 3,
                },
            })
            .then((ret) => {
                const {
                    data: res
                } = ret;
                console.log(res);
            });
    </script>
</body>

</html>